package com.hangxintong.common.base;

import org.hibernate.dialect.MySQL57InnoDBDialect;

/**
 * @author lvyanfei
 * @date 2020-12-17
 */
public class MySQL57InnoDBDialectWithoutFK extends MySQL57InnoDBDialect {

    /**
     * 不生成外键
     * @param constraintName
     * @param foreignKey
     * @param referencedTable
     * @param primaryKey
     * @param referencesPrimaryKey
     * @return
     */
    @Override
    public String getAddForeignKeyConstraintString(String constraintName, String[] foreignKey, String referencedTable, String[] primaryKey, boolean referencesPrimaryKey) {
        return "";
    }
}
